Skip to content

hwmon/arm64: dts: qcom: Update BCL to v4 and enable on eliza - #1553

Open
aastpand wants to merge 16 commits into
qualcomm-linux:qcom-7.3-esfrom
aastpand:qcom-7.3-es-bcl-v4
Open

aastpand wants to merge 16 commits into
qualcomm-linux:qcom-7.3-esfrom
aastpand:qcom-7.3-es-bcl-v4

Conversation

@aastpand

Copy link
Copy Markdown

Update Qualcomm PMIC BCL hwmon support on qcom-7.3-es from v2 to v4 (https://lore.kernel.org/all/20261005-qcom-bcl-hwmon-v4-0-50b9a8c730b7@oss.qualcomm.com/) and enable BCL on eliza (pm7550/pm7550ba): revert the remaining v2 commits.

aastpand and others added 16 commits November 26, 2026 11:13
This reverts commit 67ebc52.

These changes are superseded by the BCL v4 patch series.

Signed-off-by: Aastha Pandey <aastpand@qti.qualcomm.com>
This reverts commit d2d0a73.

These changes are superseded by the BCL v4 patch series.

Signed-off-by: Aastha Pandey <aastpand@qti.qualcomm.com>
This reverts commit 39023ce.

These changes are superseded by the BCL v4 patch series.

Signed-off-by: Aastha Pandey <aastpand@qti.qualcomm.com>
This reverts commit ad08236.

These changes are superseded by the BCL v4 patch series.

Signed-off-by: Aastha Pandey <aastpand@qti.qualcomm.com>
This reverts commit a58f3b3.

These changes are superseded by the BCL v4 patch series.

Signed-off-by: Aastha Pandey <aastpand@qti.qualcomm.com>
This reverts commit 9635b85.

These changes are superseded by the BCL v4 patch series.

Signed-off-by: Aastha Pandey <aastpand@qti.qualcomm.com>
…ergency attributes

Some hardware monitoring chips support three alarm levels for current and
voltage high limits, and three alarm levels for voltage low limits.
Add support for currX_emergency, inX_emergency, and inX_lemergency
attributes together with the appropriate alarm attributes to support such
chips.

Cc: Manaf Meethalavalappu Pallikunhi <manaf.pallikunhi@oss.qualcomm.com>
Tested-by: Manaf Meethalavalappu Pallikunhi <manaf.pallikunhi@oss.qualcomm.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Link: https://patch.msgid.link/20260813211433.879638-1-linux@roeck-us.net
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Aastha Pandey <aastpand@qti.qualcomm.com>
Qualcomm SPMI PMIC BCL (Battery Current Limiting) is a safety feature
that monitors battery or system voltage and current to alert system
for overcurrent or undervoltage conditions.

It provides:
- Real-time voltage and current monitoring
- Configurable thresholds per channel
- Hardware interrupts when thresholds are violated

Add a devicetree binding to describe the BCL on Qualcomm's PMICs.

Add sensor type to SPMI device list for BCL device.

Signed-off-by: Manaf Meethalavalappu Pallikunhi <manaf.pallikunhi@oss.qualcomm.com>
Signed-off-by: Aastha Pandey <aastpand@qti.qualcomm.com>
Link: https://lore.kernel.org/r/20261005-qcom-bcl-hwmon-v4-1-50b9a8c730b7@oss.qualcomm.com
Add driver for Qualcomm SPMI PMIC Battery Current Limiting (BCL)
hardware monitor. The driver exposes battery voltage and current
monitoring through hwmon interface.

The BCL driver provides
- Real-time voltage and current readings
- Configurable threshold-based alarms
- Interrupt-driven notifications when thresholds are exceeded
- Automatic threshold management with polling-based recovery
- Hardware-specific scaling factors and threshold representations

Signed-off-by: Manaf Meethalavalappu Pallikunhi <manaf.pallikunhi@oss.qualcomm.com>
Signed-off-by: Aastha Pandey <aastpand@qti.qualcomm.com>
Link: https://lore.kernel.org/r/20261005-qcom-bcl-hwmon-v4-2-50b9a8c730b7@oss.qualcomm.com
Add Battery Current Limiting (BCL) hardware monitor node for
hamoa-pmic. The BCL monitors battery voltage and current, providing
hardware interrupts when configurable thresholds are violated.

Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manaf.pallikunhi@oss.qualcomm.com>
Signed-off-by: Aastha Pandey <aastpand@qti.qualcomm.com>
Link: https://lore.kernel.org/r/20261005-qcom-bcl-hwmon-v4-3-50b9a8c730b7@oss.qualcomm.com
Add Battery Current Limiting (BCL) hardware monitor node for
pm7550-eliza. The BCL monitors battery voltage and current, providing
hardware interrupts when configurable thresholds are violated.

Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manaf.pallikunhi@oss.qualcomm.com>
Signed-off-by: Aastha Pandey <aastpand@qti.qualcomm.com>
Link: https://lore.kernel.org/r/20261005-qcom-bcl-hwmon-v4-5-50b9a8c730b7@oss.qualcomm.com
Add Battery Current Limiting (BCL) hardware monitor node for
pm7550ba-eliza. The BCL monitors battery voltage and current, providing
hardware interrupts when configurable thresholds are violated.

Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manaf.pallikunhi@oss.qualcomm.com>
Signed-off-by: Aastha Pandey <aastpand@qti.qualcomm.com>
Link: https://lore.kernel.org/r/20261005-qcom-bcl-hwmon-v4-6-50b9a8c730b7@oss.qualcomm.com
Add Battery Current Limiting (BCL) hardware monitor node for pm8550
PMIC. The BCL monitors battery voltage and current, providing hardware
interrupts when configurable thresholds are violated.

Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manaf.pallikunhi@oss.qualcomm.com>
Signed-off-by: Aastha Pandey <aastpand@qti.qualcomm.com>
Link: https://lore.kernel.org/r/20261005-qcom-bcl-hwmon-v4-8-50b9a8c730b7@oss.qualcomm.com
Add Battery Current Limiting (BCL) hardware monitor node for pmh0101
PMIC. The BCL monitors battery voltage and current, providing hardware
interrupts when configurable thresholds are violated.

Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manaf.pallikunhi@oss.qualcomm.com>
Signed-off-by: Aastha Pandey <aastpand@qti.qualcomm.com>
Link: https://lore.kernel.org/r/20261005-qcom-bcl-hwmon-v4-9-50b9a8c730b7@oss.qualcomm.com
Add Battery Current Limiting (BCL) hardware monitor node for pmih0108
PMIC. The BCL monitors battery voltage and current, providing hardware
interrupts when configurable thresholds are violated.

Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manaf.pallikunhi@oss.qualcomm.com>
Signed-off-by: Aastha Pandey <aastpand@qti.qualcomm.com>
Link: https://lore.kernel.org/r/20261005-qcom-bcl-hwmon-v4-11-50b9a8c730b7@oss.qualcomm.com
Add Battery Current Limiting (BCL) hardware monitor node for smb2370
PMIC. The BCL monitors battery voltage and current, providing hardware
interrupts when configurable thresholds are violated.

Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manaf.pallikunhi@oss.qualcomm.com>
Signed-off-by: Aastha Pandey <aastpand@qti.qualcomm.com>
Link: https://lore.kernel.org/r/20261005-qcom-bcl-hwmon-v4-12-50b9a8c730b7@oss.qualcomm.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants